<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet"
	href="js/jquery-easyui-1.4/themes/bootstrap/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="js/jquery-easyui-1.4/themes/icon.css"
	type="text/css"></link>
<script type="text/javascript" src="js/jquery-easyui-1.4/jquery.min.js"></script>
<script type="text/javascript"
	src="js/jquery-easyui-1.4/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="js/jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<script type="text/javascript" src="js/signininfoUI.js"></script>
<style type="text/css">
body {
	margin: 0px 0px;
}
</style>
</head>

<body>
	<!-- 表格 -->
	<table id="xdatagrid">
	</table>
	<!-- 右击事件表格 -->
	<div id="xClickMenu" class="easyui-menu" style="width: 120px;">
		<div data-options="iconCls:'icon-edit'" onclick="updateStatus(1)">已到</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateStatus(-1)">未到</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateStatus(0)">迟到</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateStatus(2)">早退</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateStatus(3)">病假</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateStatus(4)">事假</div>
		<div data-options="iconCls:'icon-reload'" onclick="doReload()">
			刷新</div>
	</div>
</body>

<script type="text/javascript">
	var parentt = $(window);
	var tstr = location.href;
	var idstr = tstr.substring(tstr.indexOf("id") + 3);
	console.info(idstr);
	var dgTitle = "点到管理";
	var dgDeleteMsg = "";
	var dgBaseUrl = "admin/signininfo_";
	var dgDateUrl = dgBaseUrl + "list?scheduleId=" + idstr;
	var dgAddUrl = dgBaseUrl + "add";
	var dgUpdateUrl = dgBaseUrl + "update";
	var dgDeleteUrl = dgBaseUrl + "delete";
	var dgIdField = "id";
	var dgParams = {};
	var dgSortName = "id";
	var dgSortOrder = "desc";
	var dgColumns = [ [
			{
				field : 'id',
				formatter : function(value, rowData, rowIndex) {
					return " <input class='xid' type='checkbox' value='" + value +"'/>";
				}
			}, {
				title : '课程名',
				field : 'scheduleName',
				sortable : false,
				resizable : true,
				width : 125
			}, {
				title : '学号',
				field : 'studentId',
				sortable : false,
				resizable : true,
				width : 125
			}, {
				title : '姓名',
				field : 'studentName',
				sortable : false,
				resizable : true,
				width : 125
			}, {
				title : '点到情况',
				field : 'status',
				sortable : false,
				resizable : true,
				width : 125
			}, {
				title : '点到时间',
				field : 'signInTime',
				sortable : false,
				resizable : true,
				width : 125
			} ] ];
</script>
</html>
